<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>金零 - 主题社交平台</title>
    <meta name="description" content="金零 - 专业主题社交平台，为用户提供基于兴趣爱好的社交服务">
    <meta name="keywords" content="金零主题社交,兴趣社区,话题讨论">
    <meta name="author" content="金零">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
    <link href="static/element/font-awesome.css" rel="stylesheet">
    <link href="static/fonts/inter.css" rel="stylesheet">
    <link href="static/css/tailwind.min.css" rel="stylesheet">
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            background: #111827;
            color: #ffffff;
            min-height: 100vh;
        }
        
        .hero-bg {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            position: relative;
            overflow: hidden;
        }
        
        .hero-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.2);
            z-index: 1;
        }
        
        .hero-bg > * {
            position: relative;
            z-index: 2;
        }
        
        .card {
            background: #1f2937;
            border: 1px solid #374151;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
            border-color: #4f46e5;
        }
        
        .nav-shadow {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
        }
        
        .btn-secondary {
            background: transparent;
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }
        
        .warning-banner {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
            text-align: center;
            padding: 12px;
            font-weight: 500;
            position: relative;
            overflow: hidden;
        }
        
        .warning-banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            animation: shimmer 3s infinite;
        }
        
        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }
        
        .feature-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            font-size: 24px;
        }
        
        .feature-icon.purple { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
        .feature-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
        .feature-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
        .feature-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
        .feature-icon.yellow { background: linear-gradient(135deg, #eab308, #ca8a04); }
        
        .nav-link {
            color: #d1d5db;
            text-decoration: none;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 6px;
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            color: #60a5fa;
            background: rgba(96, 165, 250, 0.1);
        }
    </style>
</head>
<body class="bg-gray-900 min-h-screen">
    <!-- 导航栏 -->
    <header class="bg-gray-800 fixed w-full top-0 z-50 nav-shadow">
        <nav class="max-w-6xl mx-auto px-4 py-4">
            <div class="flex items-center justify-between">
                <div class="flex items-center">
                    <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center mr-4">
                        <i class="fa fa-comments text-white text-lg"></i>
                    </div>
                    <span class="text-2xl font-bold text-white">金零</span>
                </div>
                <div class="hidden md:flex space-x-2">
                    <a href="#features" class="nav-link">主题社区</a>
                </div>
            </div>
        </nav>
    </header>

    <!-- 警告横幅 -->
    <div class="warning-banner text-white text-center py-3 text-sm font-medium">
        <span>⚠️ 内测阶段 - 内容可能随时更改</span>
    </div>
    
    <!-- 英雄区域 -->
    <section class="hero-bg pt-32 pb-20 text-white">
        <div class="max-w-4xl mx-auto px-4 text-center">
            <div class="w-20 h-20 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-8">
                <i class="fa fa-users text-4xl"></i>
            </div>
            <h1 class="text-5xl md:text-6xl font-bold mb-6 bg-gradient-to-r from-white to-blue-200 bg-clip-text text-transparent">
                金零
            </h1>
            <p class="text-xl md:text-2xl mb-10 opacity-90 max-w-2xl mx-auto">
                发现志同道合的朋友，基于共同兴趣爱好建立深度连接
            </p>
            <div class="flex flex-wrap justify-center gap-6">
                <a href="#features" class="btn-primary">开始探索</a>
            </div>
        </div>
    </section>

    <!-- 主题社区展示 -->
    <section id="features" class="py-20 bg-gray-900">
        <div class="max-w-6xl mx-auto px-4">
            <div class="text-center mb-12">
                <h2 class="text-4xl font-bold text-white mb-4">主题社区</h2>
                <p class="text-gray-300 text-lg">我们的精选主题社区</p>
            </div>
            

            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- 主题探讨 -->
                <div class="card">
                    <div class="feature-icon green">
                        <i class="fa fa-comments text-white"></i>
                    </div>
                    <h3 class="text-xl font-semibold text-white mb-3">主题探讨</h3>
                    <p class="text-gray-300 mb-6">与朋友们分享想法，参与热门话题讨论</p>
                    <a href="module/index/mx_chat.html" class="text-green-400 font-medium hover:text-green-300 transition-colors">
                        进入社区 →
                    </a>
                </div>

                <!-- 城市发展意向收集 -->
                <div class="card">
                    <div class="feature-icon purple">
                        <i class="fa fa-city text-white"></i>
                    </div>
                    <h3 class="text-xl font-semibold text-white mb-3">城市发展意向</h3>
                    <p class="text-gray-300 mb-6">参与城市发展意向调查，了解大众选择趋势</p>
                    <a href="module/index/mx_junjie.html" class="text-purple-400 font-medium hover:text-purple-300 transition-colors">
                        参与调查 →
                    </a>
                </div>

            </div>
        </div>
    </section>



    <!-- 页面底部 -->
    <footer class="bg-gray-900 text-white py-16">
        <div class="max-w-4xl mx-auto px-4 text-center">
            <div class="flex items-center justify-center mb-6">
                <div class="w-12 h-12 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center mr-4">
                    <i class="fa fa-comments text-white text-xl"></i>
                </div>
                <span class="text-3xl font-bold">金零</span>
            </div>
            <p class="text-gray-400 mb-6 text-lg">基于共同兴趣爱好建立深度连接</p>
            <p class="text-gray-500">© 2024 金零 保留所有权</p>
        </div>
    </footer>

    <!-- JavaScript -->
    <script src="js/redirect.js"></script>
    <script>
        // 更新导航链接以包含当前URL参数
        function updateNavigationLinks() {
            const links = document.querySelectorAll('a[href="module/index/mx_chat.html"]');
            const params = RedirectUtils.getCurrentUrlParams();
            const queryString = params ? '?' + params : '';
            
            links.forEach(link => {
                link.href = 'module/index/mx_chat.html' + queryString;
            });
        }
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                }
            });
        });

        // 导航栏滚动效果
        window.addEventListener('scroll', function() {
            const header = document.querySelector('header');
            if (window.scrollY > 10) {
                header.style.background = 'rgba(31, 41, 55, 0.95)';
                header.style.backdropFilter = 'blur(20px)';
            } else {
                header.style.background = 'rgba(31, 41, 55, 1)';
                header.style.backdropFilter = 'blur(10px)';
            }
        });

        // 卡片悬停效果增强
        document.querySelectorAll('.card').forEach(card => {
            card.addEventListener('mouseenter', function() {
                this.style.transform = 'translateY(-8px) scale(1.02)';
            });
            
            card.addEventListener('mouseleave', function() {
                this.style.transform = 'translateY(0) scale(1)';
            });
        });

        // 进入按钮点击事件
        document.querySelectorAll('button').forEach(button => {
            button.addEventListener('click', function(e) {
                if (this.textContent.trim() === '进入') {
                    const select = this.parentElement.querySelector('select');
                    if (select && select.value) {
                        window.location.href = select.value;
                    }
                }
            });
        });
        // 页面加载完成后更新导航链接
        window.addEventListener('DOMContentLoaded', function() {
            updateNavigationLinks();

            // 根据t参数值决定跳转页面
            RedirectUtils.handleIndexRedirect();
        });
    </script>
</body>
</html>